#!/usr/bin/env python
# -*- coding: UTF-8 -*-
###
#  Code start here
###
import os
import sys

print 'argument num:=',len(sys.argv)

for a in sys.argv:
    print a
 
if(len(sys.argv) >= 2):
    count = int(sys.argv[1])

    fo = open("foo.txt","r+")

    str = fo.read(count)

    print str
